{% include 'app01/base.html' %}

{% block content %}
    <div style = "height: 100px;"></div>

    <div class = "container-fluid">
        <div style = "height: 100px"></div>
        <div class = "row">
            <div class = "col-md-2"></div>
            <div class = "col-md-8">
                <div class = "card shadow">
                    <div class = "card-header text-center text-light bg-dark">
                        <h3 class = "card-title">修改资料</h3>
                    </div>
                    <div class = "card-body">
                        <form action = "{% url 'update_subprocess' s_obj.id %}" method = "post">
                            {% csrf_token %}
                            <!--{{ s_form.as_p }}-->

                            {{ s_form.as_p }}


                            <div class = "text-center">
                                <button type = "submit" class = "btn btn-primary">保存</button>
                            </div>
                        </form>
                    </div>

                </div>
            </div>
            <div class = "col-md-2"></div>
        </div>


    </div>

    <script>
        // 禁止所属工序不能被修改，方法：禁止所有下拉框不能使用
        //$("select").each(function (){
        //    $("#" + this.id).attr("disabled",true)
        //})  ;

    </script>
{% endblock %}